<include file="Public:header" />
<include file="Public:left" />

<style>
    td{text-align:center;}
</style>
<section style="padding-bottom: 20px">
    <div class="page_title">
        <h2 class="fl">列表</h2>
        <a class="fr" href="{:url('Mechanism/add')}">添加</a>
        <form action="" >
            <select name="mid">
                <option value="0" >请选择分类</option>
                <volist name="mechanism_category" id="vo">
                <option value="{$vo.id?$vo.id:'';}" <if condition="$mid eq $vo.id">selected='selected'</if>>{$vo.name}</option>
                </volist>
            </select>
            <input  class="page_title_submit" type="submit" value="搜索">
        </form>  
    </div>
    <table class="table">
        <tr>
            <th style="width: 50px;">ID</th>
            <th>名称</th>
            <th>分类</th>
            <th>图片</th>
            <th>链接</th>
            <th>排序</th>
            <th style="width:150px;">操作</th>
        </tr>
        <volist name="mechanism_result" id="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.category_name}</td>
                <td><img src="{$vo.img}" style="width:100px;height:100px"></td>
                <td>{$vo.href}</td>
                <td>{$vo.orders}</td>
                <td>
                    <a href="{:url('Mechanism/add',array('id'=>$vo['id']))}" class="inner_btn">编辑</a>
                </td>
            </tr>
        </volist>
    </table>
{$page}
</section>
 </div>
</section>
</body>
</html>
